package com.stake.model;

public enum ActivityTypesEnum {
	
	
	
	PROVIDE_TALK("Present a Talk" ), SEARCH_SPEAKER("Search for a Speker"), PROVIDE_COURSE("Teach a Course"), SEARCH_COURSE("Search for a Course"), PROVIDE_TRAINING("Provide Training"), SEARCH_TRAINER("Search a Trainer");
	
	private String displayName;
	
	private ActivityTypesEnum(String displayName){ 
		this.displayName = displayName;
	}
	
	public static String getValueByName(String name){
		for(ActivityTypesEnum type : ActivityTypesEnum.values()){
			if(type.toString().equals(name)){
				return type.getDisplayName();
			}
		}
		return null;
	}

	/**
	 * @return the displayName
	 */
	public String getDisplayName() {
		return displayName;
	}

	/**
	 * @param displayName the displayName to set
	 */
	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}
	
}
